var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var vipModel = require('../../app/models/vipModel');
var config = require('../config');

suite('测试vipModel', function () {
    var vip_model;
    setup(function (done) {
        vipModel.getByRoleId(config.other_role_id, function (err, model) {
            assert.equal(err == null, true);
            vip_model = model;
            vip_model.toJSON();
            done();
        });
    });

    suite('addReceiveVipLevel', function () {
        test('添加已经领取vip等级', function () {
            vip_model.addReceiveVipLevel(4);
        });
    });

    suite('isCanReceive', function () {
        test('是否可领取vip奖励', function () {
            vip_model.isCanReceive(1);
        });
    });
});
